import { Alova } from '@/utils/http/alova/index';

//获取table
export function getCoupon(params: any) {
  return Alova.Post('/admin/coupon', params);
}

export function putCoupon(params: any) {
  return Alova.Put('/admin/coupon', params);
}

export function patchCoupon(params: any) {
  return Alova.Patch('/admin/coupon', params);
}

export function getCouponInfo(id: number) {
  return Alova.Get('/admin/coupon/' + id);
}

export function deleteCoupon(id: number) {
  return Alova.Delete('/admin/coupon/' + id);
}
